Back

Simple Browser Detect

 

 

This script tells the visitor the Web browser they are using, either Internet Explorer or Netscape.  If they use another Browser it does nothing at all.  As is is will work but it is basically useless.  I included it so you can be familiar with it because it can be expanded.  For example if you have Microsoft base products, you can alert them of features.  The same can be done with Netscape.   The Message is highlighted in yellow.

 

This script should be placed in the body of the HTML Document

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

if(navigator.appName == "Netscape") {
document.write("You're running a Netscape Browser")
}
else
if(navigator.appName == "Microsoft Internet Explorer") {
document.write("You're running Internet Explorer")
}
else {
}
</SCRIPT>
 

 

� Copyright 2009 Ashesh